<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
		<script>
		var arr=['A',3,'B',10,'a','z'];
		 function Sort(arr){
			for (var i=0;i<arr.length-1;i++) {
				for(var j=0;j<arr.length-1-i;j++){
					if (String(arr[j])>String(arr[j+1])) {
						var temp=arr[j];
						arr[j]=arr[j+1];
						arr[j+1]=temp;
					}
				}
			}
		    console.log(arr);
		}
		Sort(arr);
	</script>
</head>
<body>
	
</body>
</html>